package ar.com.e2solver.conf;

import java.io.IOException;
import java.util.Properties;


public class PropertiesHolder {
	
	private static PropertiesHolder instance = new PropertiesHolder();
	private Properties properties = new Properties();
	
	private PropertiesHolder(){
		try{
			this.properties.load(Thread.class.getResourceAsStream("/e2Solver.properties"));
		} catch (IOException e) {
			e.printStackTrace();
			throw new RuntimeException("No se pueden levantar properties por default", e);
		}
	}

	public static PropertiesHolder getInstance() {
		return instance;
	}

	public String getProperty(String property) {
		return this.properties.getProperty(property);
	}

}
